<template>
  <!-- 查询搜索 -->
  <el-form :inline="true" :model="formInline" class="demo-form-inline">
    <el-form-item class="formcha" label="名称">
      <el-input v-model="formInline.user" placeholder="文件或文件夹名称"></el-input>
    </el-form-item>

    <el-form-item class="formcha">
      <el-button-group>
        <el-button  plain type="primary" @click="fetchdata" icon="el-icon-search">查询</el-button>
        <el-button>
          <i class="el-icon-refresh-right"></i>
          重置
        </el-button>
      </el-button-group>
    </el-form-item>
  </el-form>
</template>

<script>
import changeapi from "@/api/dangan/dangan";
export default {
  created() {
    this.fetchdata(); //查询方法
    this.XZKlist(); //部门select查询方法
    this.RYdataa(); //人员select查询方法
  },

  name: "",
  data() {
    return {
      formInline: {
        region: ""
      },
      tableData: [] // 列表组
    };
  },
  created() {},
  methods: {
    //查询列表
    fetchdata() {
      changeapi.getList("00000000-0000-0000-0000-000000000000").then(res => {
        console.log(res);
        this.tableData = res.result;
      });
    }
  }
};
</script>

<style scoped lang="scss">
.formcha {
  margin-top: 10px;
}
</style>
